<?xml version='1.0'?>

<gl_extension name="GLX_NV_video_capture" reg_no="374">
	<typedefs>
		<typedef type="XID" synonym="GLXVideoCaptureDeviceNV"/>
	</typedefs>

	<tokens>
		<token name="GLX_DEVICE_ID_NV" value="0x20CD"/>
		<token name="GLX_UNIQUE_ID_NV" value="0x20CE"/>
		<token name="GLX_NUM_VIDEO_CAPTURE_SLOTS_NV" value="0x20CF"/>
	</tokens>

	<functions>
		<function name="glXBindVideoCaptureDeviceNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="unsigned int" name="video_capture_slot"/>
				<param type="GLXVideoCaptureDeviceNV" name="device"/>
			</params>
		</function>
		<function name="glXEnumerateVideoCaptureDevicesNV" return="GLXVideoCaptureDeviceNV*">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="int" name="screen"/>
				<param type="int*" name="nelements"/>
			</params>
		</function>
		<function name="glXLockVideoCaptureDeviceNV" return="void">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="GLXVideoCaptureDeviceNV" name="device"/>
			</params>
		</function>
		<function name="glXQueryVideoCaptureDeviceNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="GLXVideoCaptureDeviceNV" name="device"/>
				<param type="int" name="attribute"/>
				<param type="int*" name="value"/>
			</params>
		</function>
		<function name="glXReleaseVideoCaptureDeviceNV" return="void">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="GLXVideoCaptureDeviceNV" name="device"/>
			</params>
		</function>
	</functions>
</gl_extension>
